package library.operation.impl;

import library.book.BookList;
import library.operation.IOperation;

/**
 * 查找书籍操作
 */
public class FindOperation implements IOperation {

    @Override
    public void work(BookList bookList) {
        System.out.println("此时您正在进行的是查找书籍操作~");
        System.out.println("请输入您要查找的书籍名称：");
        String booksName=scanner.nextLine();

        if(bookList.isContains(booksName)){
            System.out.println("该书在书架上~~");
        }else{
            System.out.println("该书未上架图书馆~~book");
        }
    }
}
